import {http} from '../utils/http'

export const getTreeDetailAPI=(params)=>{
    return http({
        method: 'GET',
        url: '/tree/details/'+params,
    })
}

export const postIssueTreeAPI=(params)=>{
    return http({
        method: 'post',
        url: '/tree/issue',
        data: params
    })
}

export const getUserIssueListAPI=(params)=>{
    return http({
        method: 'get',
        url: '/tree/list',
        params
    })
}

//添加古树
export const addTreeAPI=(params)=>{
    return http({
        method: 'post',
        url: '/tree',
        data: params
    })
}